package com.zzh.rabbit.demo.base;


import android.os.Bundle;

import com.zzh.lib.bar.java.UltimateBarX;
import com.zzh.lib.core.utils.HResUtils;
import com.zzh.mvvm.base.BaseRabbitActivity;
import com.zzh.rabbit.BR;
import com.zzh.rabbit.R;
import com.zzh.rabbit.demo.base.vm.BaseViewModel;

import androidx.databinding.ViewDataBinding;

/**
 * Created by zzh on 2023/11/27.
 *
 * @date: 2023/11/27 15:32
 * @email: zzh_hz@126.com
 * @author: zzh
 * @description: com.zzh.rabbit.demo.base
 */
public abstract class BaseActivity<VM extends BaseViewModel, VB extends ViewDataBinding> extends BaseRabbitActivity<VM, VB> {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        UltimateBarX.statusBar(this).color(HResUtils.getIntColor(R.color.colorAccent))
                .fitWindow(true).apply();
    }

    @Override
    protected void initViewAndData(Bundle savedInstanceState) {
    }

    @Override
    protected int initVariableId() {
        return BR.viewModel;
    }
}
